package com.sicau.smarttraceplatform.entity.param.collectingdata;

import com.sicau.smarttraceplatform.entity.param.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 采集数据查询入参
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2020-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("采集数据查询入参")
public class CollectingDataQueryParam extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 溯源id
     */
    @NotBlank(message = "溯源id不能为空")
    @ApiModelProperty(value = "溯源id", required = true)
    private String traceId;

    /**
     * 采集日期 start
     */
    @ApiModelProperty("采集日期 start")
    private LocalDateTime collectionStartTime;

    /**
     * 采集日期 end
     */
    @ApiModelProperty("采集日期 end")
    private LocalDateTime collectionEndTime;


}
